#include "LexAn.h"
#include "TokeErgo.h"
#include "SynAnalyzer.h"

int main()
{
    std::cout << "请输入文件名（格式 XXX.snl）：";
    std::string fileName;
    std::cin >> fileName;

    LexAn lexAn(fileName.data());

    SynAnalyzer synAnalyzer(*(new TokeErgo(lexAn.totalLogic())));

    synAnalyzer.genSyntax();

    return 0;
}